package com.ie.cloud.payment.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Created with FR
 *
 * @Author: DQ
 * @Date: 2025/03/03/14:51
 * @Description: 描述语句
 */
@Schema(description = "商户(租户计费)账单表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_merchant_order_record")
public class MerchantOrderRecord implements Serializable {


    public interface BIZ_TYPE {
        public static final String ElectricityBill = "ElectricityBill";//电费账单
        public static final String ChargingPile = "ChargingPile";
    }

    private static final long serialVersionUID = 1L;

    /**
     * 业务类型
     */
    @Schema(title = "bizType", description = "业务类型")
    private String bizType;

    /**
     * 业务编号
     */
    @Schema(title = "bizCode", description = "业务编号")
    private String bizCode;

    /**
     * 应用ID
     */
    @Schema(title = "appId", description = "应用ID")
    private String appId;

    /**
     * 订单失效时间
     */
    @Schema(title = "expiredTime", description = "订单失效时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime expiredTime;

    /**
     * 创建时间
     */
    @Schema(title = "createdAt", description = "创建时间")
    private LocalDateTime createdAt;

    /**
     * 创建时间时间戳，毫秒
     */
    @Schema(title = "createdAtTimestamp", description = "创建时间时间戳，毫秒")
    private Long createdAtTimestamp;

    /**
     * updated_at
     */
    @Schema(title = "updatedAt", description = "updated_at")
    private LocalDateTime updatedAt;
}
